<?php
require 'config.php';
session_start();

$result = mysql_query("select p.seleccionar from permisos p,modulos m where p.idmodulo = m.idmodulos and p.idrol= '". $_SESSION['rol'] ."' and m.nombre='LLamadas'",$conexion);
if(mysql_num_rows($result)>0)
{
	$row = mysql_fetch_assoc($result);
	if($row['seleccionar']== 1){
		$resultset = mysql_query("SELECT ideventos,nombre from eventos where activo = '1'",$conexion);
		echo("<span  class= 'glyphicon glyphicon-chevron-down'><strong> Registro de Llamadas</strong></span>&nbsp ");
		echo("<li class='divider'></li>");
		while ($row = mysql_fetch_array($resultset))
		{
			echo("<li><a style='text-decoration:none' href='VENTAS/llamadas-registrar.php?evento=".$row['ideventos']."' tabindex='-1' data-toggle='tab'><span class= 'glyphicon glyphicon-earphone'></span>&nbsp;&nbsp;&nbsp;&nbsp;<strong>".$row['nombre']."</strong></a></li>");
			echo("<li class='divider'></li>");
		}
	}
}




?>